﻿#region Copyright (C) Sector7 Software Studio. All rights reserved
/*******************************************************************************************
 * Creation
 *      Author:         Wolf Lai
 *      Date:           2013/6/6 星期四 23:37:12
 *      Version:        
 * Modification 
 *      Author: 
 *      Date: 
 *      Description: 
 *      Version:
 *******************************************************************************************/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sector7.Framework.DB;
using Sector7.Medical.EntityType;

namespace Sector7.Medical.DAO
{
    /// <summary>
    /// 科室数据访问接口
    /// </summary>
    public interface IDepartmentDAO : IDAOBase<M7_Department>
    {
        /// <summary>
        /// 根据科室标志获取所有科室信息
        /// </summary>
        /// <param name="flags">科室标志</param>
        /// <returns></returns>
        List<M7_Department> ReadAll(int flags);

        /// <summary>
        /// 根据科室复合标志获取所有科室信息
        /// </summary>
        /// <param name="comflags">复合科室标志</param>
        /// <returns></returns>
        List<M7_Department> ReadAllByComflags(int comflags);

        /// <summary>
        /// 编辑二级科室Flags
        /// </summary>
        /// <param name="parentDeptId">一级科室ID</param>
        /// <param name="flags">标志</param>
        /// <returns></returns>
        int UpdateSubDepartmentFlags(int parentDeptId, int flags);
    }
}
